using GolSig.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Test.GolSig.Library.CellInfoSpecs
{
    [TestClass]
    public class WhenComparingCellInfo
    {
        [TestMethod()]
        public void GivenEqualCell_ThenShouldBeEqual()
        {
            CellInfo cell1 = new CellInfo(new Position(0, 0), true);
            CellInfo cell2 = new CellInfo(new Position(0, 0), true);
            Assert.IsTrue(cell1.Equals(cell2));
        }
        [TestMethod()]
        public void GivenNotEqualPosition_ThenShouldBeNotEqual()
        {
            CellInfo cell1 = new CellInfo(new Position(0, 0), true);
            CellInfo cell2 = new CellInfo(new Position(0, 1), true);
            Assert.IsFalse(cell1.Equals(cell2));
        }
        [TestMethod()]
        public void GivenNotEqualStatus_ThenShouldBeNotEqual()
        {
            CellInfo cell1 = new CellInfo(new Position(0, 0), true);
            CellInfo cell2 = new CellInfo(new Position(0, 0), false);
            Assert.IsFalse(cell1.Equals(cell2));
        }
    }
}
